﻿#!/bin/bash

#安装nginx
#作者: x
#时间: 2023-12-11



echo "=======start install nginx========"
sudo yum install epel-release
sudo yum update
sudo yum install -y nginx
sudo systemctl start nginx.service
sudo systemctl enable nginx.service

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload


#下载插件


#加载插件
#cat << EOF >> /etc/nginx/nginx.conf
#load_module /usr/lib64/nginx/modules/ngx_stream_module.so;
#EOF


#
echo "=====install end==========="


